package com.netforce.util.convert;

import com.google.gson.Gson;

public class ToJsonConverter<Type> implements Converter<Type, String>
{
  public ToJsonConverter(Class<Type> aClass)
  {
    type = aClass;
  }

  @Override
  public String convert(Type aSource)
  {
    Gson gson = new Gson();
    return gson.toJson(aSource);
  }

  protected Class<Type> type;
}
